package com.itc.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itc.common.core.validate.Add;
import com.itc.system.api.domain.SysDept;
import com.itc.system.api.domain.SysMenu;
import com.itc.system.api.domain.SysUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 
 * @TableName sys_dept_menu
 */
@TableName(value ="sys_dept_menu")
@Data
public class SysDeptMenu implements Serializable {
    /**
     *
     */
    @ApiModelProperty(value = "部门id")
    @NotNull(message = "部门id不能为空",groups = Add.class)
    private Long deptId;

    /**
     * 
     */
    @NotNull(message = "菜单id不能为空",groups = Add.class)
    @ApiModelProperty(value = "菜单id")

    private Long menuId;


    /**
     * 部门实体类
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "部门实体类")
    private SysDept sysDept;
    /**
     * 菜单实体类
     */
    @ApiModelProperty(value = "菜单实体类")
    @TableField(exist = false)
    private SysMenu sysMenu;

    @ApiModelProperty(value = "用户实体类")
    @TableField(exist = false)
    private SysUser sysUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}